<?php 
/**
* @author Oliver Leisalu, Inditel Meedia
* @package DomFg
* @subpackage Input
*/
class DomFgRadioGroup extends DomFgSelect {
	
	protected $vertical = false;
	
	public function checked( $selected ) {
		$this->selected($selected);
	}
	
	public function vertical( $vertical ) {
		$this->vertical = (bool)$vertical;
		return $this;
	}
	
	public function render() {

		$this->values = self::parseArrayInput( $this->values, array($this->selected=>true), $this->property, $this->keyProperty );

		$renderer = $this->getRenderer();
		$renderer->assign('input', $this );
		return $renderer->fetch('Input/RadioGroup.html');
	}
	

}
?>